package com.leonzx.base.utils;

/**
 * @Author:梁亮
 * @Description:
 * @Date: 2018/6/7 10:45
 */
public class SQLUtils {

    private SQLUtils() {}

    /**
     *
     * @param colum
     * @return
     */
    public static String leftLike(String colum) {
        return "%" + colum;
    }

    /**
     *
     * @param colum
     * @return
     */
    public static String rightLike(String colum) {
        return colum + "%";
    }

    /**
     *
     * @param colum
     * @return
     */
    public static String like(String colum) {
        return leftLike(rightLike(colum));
    }
}
